package com.smartfarm.Mingling;

import com.smartfarm.Gongchang.AgriculturalMachine;

//命令模式相关
public class StartCommand implements Command {
    private AgriculturalMachine machine;

    public StartCommand(AgriculturalMachine machine) {
        this.machine = machine;
    }

    @Override
    public void execute() {
        System.out.println("发送启动指令...");
        machine.operate();
    }
}